package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//推荐视频实体类
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document(collection = "recommend_video")
public class RecommendVideo implements Serializable {
    private static final long serialVersionUID = -3136732836884933873L;

    private ObjectId id; //主键id
    private Long date; //时间
    private Long vid; //自动增长
    private ObjectId videoid; //主键id

    private Long userId;
    private String videoUrl; //视频文件，URL

}
